build a calculator with python